package com.wfk.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 会员信息表
 * </p>
 *
 * @since 2019-01-07
 */
@TableName("t_customer")
public class Customer implements Serializable {
	@TableField(exist=false)
	private String start;
	@TableField(exist=false)
	private String end;
	@TableField(exist=false)
	private Account account;
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 账号
	 */
	private String phone;

	/**
	 * 原始账号
	 */
	private String oldcode;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 交易密码
	 */
	private String payword;

	/**
	 * 0保密  1男 2女
	 */
	private Integer sex;

	private String trades;

	/**
	 * 名称
	 */
	private String nikname;

	/**
	 * 真实名称
	 */
	private String realname;

	/**
	 * 地址明细
	 */
	private String addressdetail;

	private String qrurl;

	/**
	 * 头像
	 */
	private String headurl;

	/**
	 * 身份证
	 */
	private String idcard;

	/**
	 * 0正常 -1冻结
	 */
	private Integer status;

	private Integer proid;

	private Integer cityid;

	/**
	 * 区
	 */
	private Integer areaid;

	/**
	 * 推荐人
	 */
	private Integer parentid;

	/**
	 * 代数
	 */
	private Integer generation;

	/**
	 * 关系链 id逗号分隔
	 */
	private String genes;

	/**
	 * 融云token
	 */
	private String rytoken;

	/**
	 * 用户来源 1 PC注册  2APP注册  3微信
	 */
	private Integer fromtype;

	/**
	 * 0是代理 -1不是
	 */
	private Integer isproxy;

	/**
	 * 会员等级id
	 */
	private Integer levelid;

	/**
	 * 升级时间
	 */
	private Date upleveltime;

	/**
	 * 注册时间
	 */
	private Date createtime;

	/**
	 * 用作于乐观锁
	 */
	private Date updatetime;

	/**
	 * 临时令牌作为交互时校验
	 */
	private String token;
	/**
	 * 0未开通1开通
	 */
	private Integer isopen;

	public void setIsopen(Integer isopen) {
		this.isopen = isopen;
	}
	public Integer getIsopen() {
		return isopen;
	}
	
	public String getStart() {
		return start;
	}

	public void setStart(String start) {
		this.start = start;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getOldcode() {
		return oldcode;
	}

	public void setOldcode(String oldcode) {
		this.oldcode = oldcode;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPayword() {
		return payword;
	}

	public void setPayword(String payword) {
		this.payword = payword;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getTrades() {
		return trades;
	}

	public void setTrades(String trades) {
		this.trades = trades;
	}

	public String getNikname() {
		return nikname;
	}

	public void setNikname(String nikname) {
		this.nikname = nikname;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getAddressdetail() {
		return addressdetail;
	}

	public void setAddressdetail(String addressdetail) {
		this.addressdetail = addressdetail;
	}

	public String getQrurl() {
		return qrurl;
	}

	public void setQrurl(String qrurl) {
		this.qrurl = qrurl;
	}

	public String getHeadurl() {
		return headurl;
	}

	public void setHeadurl(String headurl) {
		this.headurl = headurl;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getProid() {
		return proid;
	}

	public void setProid(Integer proid) {
		this.proid = proid;
	}

	public Integer getCityid() {
		return cityid;
	}

	public void setCityid(Integer cityid) {
		this.cityid = cityid;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public Integer getGeneration() {
		return generation;
	}

	public void setGeneration(Integer generation) {
		this.generation = generation;
	}

	public String getGenes() {
		return genes;
	}

	public void setGenes(String genes) {
		this.genes = genes;
	}

	public String getRytoken() {
		return rytoken;
	}

	public void setRytoken(String rytoken) {
		this.rytoken = rytoken;
	}

	public Integer getFromtype() {
		return fromtype;
	}

	public void setFromtype(Integer fromtype) {
		this.fromtype = fromtype;
	}

	public Integer getIsproxy() {
		return isproxy;
	}

	public void setIsproxy(Integer isproxy) {
		this.isproxy = isproxy;
	}

	public Integer getLevelid() {
		return levelid;
	}

	public void setLevelid(Integer levelid) {
		this.levelid = levelid;
	}

	public Date getUpleveltime() {
		return upleveltime;
	}

	public void setUpleveltime(Date upleveltime) {
		this.upleveltime = upleveltime;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
	
	public void setAccount(Account account) {
		this.account = account;
	}
	public Account getAccount() {
		return account;
	}
}
